<%= simple_form_for([:admin, @own_power], html: {class: 'layui-form'}) do |f| %>
  <%= f.error_notification %>

    <div class="layui-form-item">
      <%= f.label :order_number, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :order_number, class: 'layui-input', autocomplete: 'off', placeholder: OwnPower.human_attribute_name(:order_number) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :img, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :img, class: 'layui-input', autocomplete: 'off', placeholder: OwnPower.human_attribute_name(:img) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :title, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :title, class: 'layui-input', autocomplete: 'off', placeholder: OwnPower.human_attribute_name(:title) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :content, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :content, class: 'layui-input', autocomplete: 'off', placeholder: OwnPower.human_attribute_name(:content) %>
      </div>
    </div>

  <div class="actions">
    <%= f.submit t('buttons.save'), data: { disable_with: "保存中..." }, class: 'layui-btn' %>
    <%= link_to t('buttons.cancel'), url_for(:back), class: 'layui-btn layui-btn-normal' %>
  </div>
<% end %>
